<?php

/**
 * 获取登录用户数据
 * @param $key
 * @return string
 */
function adminLogin($key){
    $result="";
    $checkResult=app("L_Admin_admin")->loginStatus();
    if($checkResult["error_no"]==0){
        $userInfo=$checkResult["result"];
        $result=$userInfo[$key]??"";
    }
    return $result;
}

